class Component {
  constructor(name, age) {
    this.name = name
    this.age = age
  }
}

/* class App extends Component {
  constructor(name) {
    super(name) // this.name = name
    console.log(this.name)
  }
} */

class App extends Component {
  constructor(...args) {
    super(...args)
    console.log(this.age)
  }
}

const a = new App('ifer', 18)
console.log(a.name) // 'ifer'
